import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/layout'

Vue.use(Router)

export default new Router({
  routes: [
   
    {
      path: '/',       
      component: Layout,
      children: [
        {
          path: '/',
          name: 'home',  
          component: () => import('@/views/Home.vue')
        }
      ]
    },
    {
      path: '/about',     
      component: Layout,
      children: [
        {
          path: '/',
          name: 'about',
          component: () => import('@/views/About.vue')
        }
      ]
    },
    {
      path: '/menu_one',
      component: Layout,
      children: [
        {
          path: '/',
          name: 'menu_one',
          component: () => import('@/views/table.vue')
        }
      ]
    },
    {
      path: '/menu_two',       
      component: Layout,
      children: [
        {
          path: '/',
          name: 'menu_two',  
          component: () => import('@/views/Home.vue')
        }
      ]
    },
  ]
})
